package com.sys.platform.mapper;

import com.sys.platform.entity.DossierDeviceWarning;
import com.sys.platform.entity.vo.dossierDeviceWarning.DossierDeviceWarningVO;
import tk.mybatis.mapper.common.BaseMapper;
import tk.mybatis.mapper.common.IdsMapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * 档案馆设备告警Mapper接口
 *
 * @author yuanfuqiang
 * @date 2024-01-10
 */
public interface DossierDeviceWarningMapper extends BaseMapper<DossierDeviceWarning>, IdsMapper<DossierDeviceWarning>, MySqlMapper<DossierDeviceWarning> {

    /**
     * 查询档案馆设备告警列表
     *
     * @param dossierDeviceWarning 档案馆设备告警
     * @return 档案馆设备告警集合
     */
    List<DossierDeviceWarningVO> selectDossierDeviceWarningList(DossierDeviceWarningVO dossierDeviceWarning);

    /**
     * 查询最新的告警记录
     *
     * @param warning
     */
    DossierDeviceWarningVO selectDossierDeviceWarningListTop1(DossierDeviceWarning warning);
}
